#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

//using namespace std;

typedef struct Heap
{
	int* _p;
	int _size;
	int _capacity;
}Heap;


void HeapInit(Heap* h);
void HeapPush(Heap* h,int x);
void HeapPop(Heap* h);
int HeapTop(Heap* h);
void HeapPrint(Heap* h);
int HeapSize(Heap* h);
int HeapCapacity(Heap* h);
bool HeapEmpty(Heap* h);